simplifying complex numbers